function drawResults(pdr1, pdr2, stepSize)

n = 1:stepSize:stepSize*length(pdr1);

figure(1)
plot(n, pdr1,'-r', n, pdr1,'+r')
xlabel('Packets sent in a network per time unit')
ylabel('Current ratio of packet delivery (recomputed every 10 packets)')
title('Change of packet delivery ratio with time','FontSize',12)        
hold on
plot(n, pdr2,'-b', n, pdr2,'xb')
hold off

pdr1sum = zeros(1, length(pdr1));
sum = 0;
for i=1:length(pdr1)
    sum = sum + pdr1(i);
    pdr1sum(i) = 50*sum;
end

pdr2sum = zeros(1, length(pdr2));
sum = 0;
for i=1:length(pdr2)
    sum = sum + pdr2(i);
    pdr2sum(i) = 50*sum;
end
   
figure(2)
plot(n, pdr1sum,'-r', n, pdr1sum,'+r')
xlabel('Packets sent in a network')
ylabel('Packets delivered')
title('Packets delivered in a network','FontSize',12)        
hold on
plot(n, pdr2sum,'-b', n, pdr2sum,'xb')
hold off

end

